package com.duoketech.service.pay;

public class IPAYCallBackFactory {

    static final String ACT="ACT";
    static final String ROOM="ROOM";
    static final String PRODUCT="PRO";

    public static IPayCallBack create(String type){
        IPayCallBack callBack=null;
        if(type.equals(ACT)){
            callBack = new ActivityOrderPayCallBack();
        }else if(type.equals(ROOM)){
            callBack = new RoomOrderPayCallBack();
        }else if(type.equals(PRODUCT)){
            callBack = new ProductOrderPayCallBack();
        }
        return callBack;
    }
}
